<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>图书添加</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="icon" href="images/logome.ico">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
		 <form th:action="@{/doBooAdd}"  th:method="post">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">图书名称::</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="bookName" lay-reqtext="字段不能为空"
                                             placeholder="请填写入图书名称" class="layui-input" lay-verify="" required />

                                        </div>
                                    </div>
								    <div class="layui-form-item">
								        <label class="layui-form-label">图书类型:</label>
								        <div class="layui-input-block">
								            <input type="text" name="bookType" lay-verify="required" lay-reqtext="字段不能为空" 
								             placeholder="请输入图书类型" value="" class="layui-input" required>
								        </div>
								    </div>
    								<div class="layui-form-item">
                                        <label class="layui-form-label">图书作者:</label>
                                        <div class="layui-input-block">
								            <input type="text" name="bookAuthor" lay-verify="required" lay-reqtext="字段不能为空" 
								            placeholder="请输入图书作者" value="" class="layui-input" required>
								        </div>
                                    </div>
    								<div class="layui-form-item">
					                <label class="layui-form-label">图书描述</label>
					                <div class="layui-input-block">
					                    <textarea placeholder="请输入描述内容" class="layui-textarea" name="bookDescribe"
					                     lay-reqtext="字段不能为空" required></textarea>
					                </div>

                                    </div>
                                    <div class="layui-form-item">
					                    <label class="layui-form-label">录入日期</label>
					                    <div class="layui-input-block">
					                        <input type="text" name="enerateTime" id="date" lay-verify="date"
					                         placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" required>
					                    </div>
					                </div>

									<p id="msg" th:text="${msg}" th:if="${! #strings.isEmpty(msg)}" 
                                style="text-align:center;color:red;font-size:18px;margin-top:-30px;margin-bottom:20px"></p>
					    <div class="layui-form-item">
					        <div class="layui-input-block">
					        <a th:href="@{/bookList}"><button type="button" class="layui-btn layui-btn-primary pre">上一步</button></a>
					            <button class="layui-btn layui-btn-normal"  lay-filter="saveBtn" type="submit">确认保存</button>
					        </div>
					    </div>
        </form>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="js/date.js" charset="utf-8"></script>
<script>

</script>
</body>
</html>